package com.java.userservice.controller;

import com.java.common.model.Result;
import com.java.userservice.model.dto.RolePermissionDTO;
import com.java.userservice.service.RolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/rolePermission")
public class RolePermissionController {

    @Autowired
    private RolePermissionService rolePermissionService;


    @PostMapping("/save")
    public Result save(@RequestBody RolePermissionDTO rolePermissionDTO) {
        return rolePermissionService.save(rolePermissionDTO);
    }
}
